﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucHomeNews.ascx.cs"
    Inherits="VINETLIFE.Module.ucHomeNews" %>
<asp:Repeater runat="server" ID="rptHomeNewCate" OnItemDataBound="rptHomeNewCate_ItemDataBound">
    <ItemTemplate>
        <div class="new">
            <ul>
                <li class="newproduct1">
                    <div class="heading-x">
                        <div class="heading1">
                            <a href='/danh-muc-tin/<%#FriendlyUrl(Eval("Title").ToString()) %>-<%#Eval("CategoryID")%>'>
                                <h3 class="heading2">
                                    <%#Eval("Title") %></h3>
                            </a>
                        </div>
                    </div>
                </li>
            </ul>
            <asp:Repeater runat="server" ID="rptHomeNews">
                <ItemTemplate>
                    <div class="listnew">
                        <div class="contentnew">
                            <h3>
                                <a href='/bai-viet/<%#FriendlyUrl(Eval("Title").ToString())%>-<%#Eval("ArticleID")%>'
                                    title='<%#Eval("Title") %>'>
                                    <%#Eval("Title") %></a></h3>
                            <p>
                                <%#WordCut(Eval("Description").ToString())%>
                                <a class="home-readmore" href='/bai-viet/<%#FriendlyUrl(Eval("Title").ToString())%>-<%#Eval("ArticleID")%>'
                                    title='<%#Eval("Title") %>'>Đọc tiếp →</a>
                            </p>
                        </div>
                        <div class="img">
                            <img src='/Media/<%#Eval("ImageUrl") %>' alt='<%#Eval("Title") %>' title='<%#Eval("Title") %>' />
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </ItemTemplate>
</asp:Repeater>
